#
# qflow project included technology osu050 files
#

# Main compiler arguments
CFLAGS = @CFLAGS@
DEFS = @DEFS@
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@
INSTALL = @INSTALL@

prefix = @prefix@
exec_prefix = @exec_prefix@

QFLOW_LIB_DIR = @QFLOW_LIB_DIR@

TECH_FILES = osu050.par osu050_stdcells.lef osu050.sh
TECH_FILES += osu050_stdcells.sp osu050.magicrc osu050.prm
TECH_FILES += SCN3ME_SUBM.30.tech osu05_stdcells.lib
TECH_FILES += osu05_stdcells.v osu050_setup.tcl osu05_stdcells.gds2

TECHINSTALL = @DIST_DIR@/share/qflow/tech

# Substitute the target qflow tech directory name in .magicrc so that magic
# can find the OSU050 techfile

all: osu050.magicrc.in
	$(RM) -f osu050.magicrc
	cat osu050.magicrc.in | sed -e \
		'/QFLOW_LIB_DIR/s#QFLOW_LIB_DIR#$(QFLOW_LIB_DIR)#' \
		> osu050.magicrc

install: ${TECH_FILES}
	@echo "Installing osu050 tech files"
	$(INSTALL) -d $(DESTDIR)$(TECHINSTALL)/osu050
	for target in $(TECH_FILES); do \
	   $(INSTALL) $$target $(DESTDIR)$(TECHINSTALL)/osu050 ;\
	done

clean:
	$(RM) -f osu050.magicrc

distclean:
	$(RM) -f osu050.magicrc

uninstall:

